package com.cn.wanxi.consumer.service.impl;

import com.cn.wanxi.consumer.domain.entity.ThreadMsg;
import com.cn.wanxi.consumer.domain.model.ResultModel;
import com.cn.wanxi.consumer.mapper.ThreadMsgMapper;
import com.cn.wanxi.consumer.service.IThreadMsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName ThreadMsgService
 * @Description TODO
 * @Author JiJiang
 * @Date 2022/9/29 13:52
 * @Version 1.0
 */

@Service
public class ThreadMsgService implements IThreadMsgService {


    @Autowired
    private ThreadMsgMapper threadMsgMapper;


    @Override
    public ResultModel saveTheadMsg(ThreadMsg threadMsg) {

        int affctedRow = threadMsgMapper.insertBySelf(threadMsg);
        return ResultModel.getResult(affctedRow);

    }
}
